export function getCardStateTxt(row) {
  const { creditorMember, debtorUser, debtorMemberSignatureId, creditorMemberSignatureId, contractState } = row
  if (contractState === 0) {
    return {
      class: 'dtx',
      label: '填写中'
    }
  } else if (contractState === 1) {
    return {
      class: 'qsz',
      label: '签署中'
    }
  } else if (contractState == 2) {
    return {
      class: 'ysx',
      label: '已生效'
    }
  } else if (contractState == 3) {
    return {
      class: 'over',
      label: '已撤回'
    }
  } else if (contractState == 4) {
    return {
      class: 'over',
      label: '已拒签'
    }
  } else if (contractState == 5) {
    return {
      class: 'over',
      label: '已失效'
    }
  }
}
